<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title>WIKINDX CLASS DOCUMENTATION</title>

<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="/wikindx2/docs/docs.css" type="text/css" />
</head>

<body bgcolor="#FFFFFF" text="#000000">
<h2>WIKINDX METHODS</h2>
<p><strong>Method:</strong><br />
  
  writeResourceKeywordTable()
</p>
<p><strong>Class:</strong><br />
  <a href="importcommonClass.html">IMPORTCOMMON</a>
<p><strong>Method Call:</strong><br />
  include_once("core/file/import/IMPORTCOMMON.php");<br />
  $common = new IMPORTCOMMON($this-&gt;db);  <br />
$common->writeResourceKeywordTable(STRING: $keywords, INT: $resourceId, STRING: $importType);
</p>
<p><strong>Description:</strong><br /> 
  This takes a string of keywords to be imported, splits it according to <em>$importType</em> (e.g. 'bibtex', 'endnote' etc.), writes the keywords to the <em>WKX_keyword</em> table and inserts a new row into <em>WKX_resource_keyword</em>. Imports from BibTeX and Endnote are expected to be delimited by ';'. As this method requires the resourceId, it should be called <strong>after</strong> you have obtained the resourceId from an insert to <em>WKX_resource</em>.</p>
<p></p>
<strong>Usage:</strong><br />
  
Example:<br />
<pre>
	include_once("core/file/import/IMPORTCOMMON.php");
	$common = new IMPORTCOMMON($this->db);
	$common->writeResourceKeywordTable("keyword1; keyword2; keyword three", 666, &quot;bibtex&quot;);
</pre> 

<p align="right"><a href="../../index.html">WIKINDX home</a>
&nbsp;&nbsp;&nbsp;&nbsp;
<a href="../../usage/index.html">WIKINDX usage</a>
&nbsp;&nbsp;&nbsp;&nbsp;
<a href="../index.html">WIKINDX classes</a>
</p>
</body>

</html>
